
package com.ami.kvm.jviewer.gui;

class KVMResponseDialogThread extends Thread {
	KVMShareDialog kVMDialog = null;
	public String message;

	public KVMResponseDialogThread() {
		this.kVMDialog = new KVMShareDialog();
		JViewerApp.getInstance().setKVMDialog(this.kVMDialog);
	}

	public void run() {
		this.kVMDialog.setUserStatus(true);
		if (JViewerApp.getInstance().isFullPermissionRequest()) {
			this.kVMDialog.constructDialog((byte) 2);
			JViewerApp.getInstance().setFullPermissionRequest(false);
		} else {
			this.kVMDialog.constructDialog((byte) 0);
		}
		this.kVMDialog.showDialog();
	}
}
